class ExpertListBeanTool {
  int? raw;
  int? total;
  List<ExpertItemBean>? rows;
  int? code;
  String? msg;

  bool get isRequestSuccess {
    return code == 200;
  }

  ExpertListBeanTool({this.raw, this.total, this.rows, this.code, this.msg});

  ExpertListBeanTool.fromJson(Map<String, dynamic> json) {
    raw = json['raw'];
    total = json['total'];
    if (json['rows'] != null) {
      rows = <ExpertItemBean>[];
      json['rows'].forEach((v) {
        rows!.add(new ExpertItemBean.fromJson(v));
      });
    }
    code = json['code'];
    msg = json['msg'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['raw'] = this.raw;
    data['total'] = this.total;
    if (this.rows != null) {
      data['rows'] = this.rows!.map((v) => v.toJson()).toList();
    }
    data['code'] = this.code;
    data['msg'] = this.msg;
    return data;
  }
}

class ExpertItemBean {
  String? searchValue;
  String? createBy;
  String? createTime;
  String? updateBy;
  String? updateTime;
  String? remark;
  Map? params;
  int? disinfestationId;
  int? membersId;
  String? membersNo;
  String? membersName;
  String? memberImage;
  String? membersCard;
  int? serviceId;
  String? serviceName;
  String? delFlag;
  int? version;

  //自定义
  bool isSelected = false;

  ExpertItemBean(
      {this.searchValue,
      this.createBy,
      this.createTime,
      this.updateBy,
      this.updateTime,
      this.remark,
      this.params,
      this.disinfestationId,
      this.membersId,
      this.membersNo,
      this.membersName,
      this.memberImage,
      this.membersCard,
      this.serviceId,
      this.serviceName,
      this.delFlag,
      this.version});

  ExpertItemBean.fromJson(Map<String, dynamic> json) {
    searchValue = json['searchValue'];
    createBy = json['createBy'];
    createTime = json['createTime'];
    updateBy = json['updateBy'];
    updateTime = json['updateTime'];
    remark = json['remark'];
    params = json['params'];
    disinfestationId = json['disinfestationId'];
    membersId = json['membersId'];
    membersNo = json['membersNo'];
    membersName = json['membersName'];
    memberImage = json['memberImage'];
    membersCard = json['membersCard'];
    serviceId = json['serviceId'];
    serviceName = json['serviceName'];
    delFlag = json['delFlag'];
    version = json['version'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['searchValue'] = this.searchValue;
    data['createBy'] = this.createBy;
    data['createTime'] = this.createTime;
    data['updateBy'] = this.updateBy;
    data['updateTime'] = this.updateTime;
    data['remark'] = this.remark;
    data['params'] = this.params;
    data['disinfestationId'] = this.disinfestationId;
    data['membersId'] = this.membersId;
    data['membersNo'] = this.membersNo;
    data['membersName'] = this.membersName;
    data['memberImage'] = this.memberImage;
    data['membersCard'] = this.membersCard;
    data['serviceId'] = this.serviceId;
    data['serviceName'] = this.serviceName;
    data['delFlag'] = this.delFlag;
    data['version'] = this.version;
    return data;
  }
}
